<template>
	<view>
		<u-popup v-model="show" mode='center'>
			<view @open='open'>
				<image :src="url" mode="aspectFit"></image>
			</view>
		</u-popup>
	</view>
</template>

<script>
	export default {
		props: {
			show1: {
				type: Boolean,
				default: false
			},
			url: {
				type: String,
				default: ''
			}
		},
		// props:['url',''],
		onLoad() {
			uni.$on('update', function(data) {
				console.log('监听到事件来自 update ，携带参数 msg 为：' + data.msg);
			})
		},
		onShow() {
			this.show = this.show1
		},
		data() {
			return {
				show: false
			}
		},
		methods: {
			// open() {
			// 	console.log(1);
			// 	this.show = true
			// }
		}
	}
</script>